package com.powernode.constant;

/**
 * @Description: 业务响应状态码
 * @Author: Tong Ziyu
 * @Date: 2024/10/8 22:28
 */
public enum BusinessEnum {
    OPERATION_FAIL(-1,"操作失败"),

    SERVER_INNER_ERROR(9999,"服务器内部异常"),

    UN_AUTHORIZATION(401,"未授权"),

    ACCESS_DENY(403,"权限不足");





    BusinessEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    private Integer code;
    private String desc;


    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
